package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectInfoDTO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdinajichi.subject.common.entity.PageResult;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author bug制作者
 * @version 1.0
 * @description: TODO
 * @date 2025/7/5 16:10
 */
@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);
    SubjectInfoBO convertDTOToBO(SubjectInfoDTO subjectInfoDTO);
    SubjectInfoDTO convertBOToDTO(SubjectInfoBO subjectInfoBO);
    List<SubjectInfoDTO> convertBOListToDTOList(List<SubjectInfoBO> subjectCateInfoBOs);
    PageResult<SubjectInfoDTO> convertBOPageResultToDTO(PageResult<SubjectInfoBO> subjectInfoBOPageResult);


}
